import { http } from './../utils'
const questions = params => http.get('/api/questions/list', params)
const questionstate = params => http.get('/api/questionstate/list', params)
const questiontype = params => http.get('/api/questiontype/list', params)
const questiontypeDel = params => http.get('/api/questions/delete', params)
const questiontypeDelAll = params => http.post('/api/questions/deleteall', params)
const questionswadd = params => http.post('/api/questions/add', params)
const houses = params => http.get('/api/houses/list', params)
const userinfo = params => http.get('/api/userinfo/list', params)
const stores = params => http.get('/api/staff/list', params)

const repairs = params => http.get('/api/repairs/list', params)

const repairstate = params => http.get('/api/repairstate/list', params)
export default {
    questions,
    questionstate,
    questiontype,
    questiontypeDel,
    questiontypeDelAll,
    questionswadd,
    houses,
    userinfo,
    stores,
    repairs,
    repairstate
}